package com.jp.knowledge.command.implement;

import android.content.Intent;
import android.support.annotation.NonNull;

import com.jp.knowledge.command.Command;
import com.jp.knowledge.command.CommandReceiver;
import com.jp.knowledge.my.activity.DepartmentManagerActivity;
import com.jp.knowledge.my.model.OrganizaModel;

/**
 * Created by 528787067@qq.com on 2017/6/17.
 *
 * 组织架构功能(公司)
 */

public class ZuZhiJiaGouGongNeng extends Command {

	public ZuZhiJiaGouGongNeng(@NonNull CommandReceiver receivert) {
		super(receivert);
	}

	@Override
	public void execute() {
		Intent intent = createIntent(DepartmentManagerActivity.class);
		OrganizaModel organizaModel = null;
		if(companyId != null){
			organizaModel = new OrganizaModel();
			organizaModel.setCompanyType(1);
			organizaModel.setCompanyId(companyId);
		}
		intent.putExtra("company", organizaModel);
		startActivity(intent);
	}
}
